<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui">

	<div>
		<h:outputText value="#{msg['ihm.application.titre']}" styleClass="titre" />
	</div>

	<h:form>
		<h:panelGroup style="position: absolute; top: 5px; right : 5px;">

			<p:menubar>
				<p:menuitem value="#{p:remoteUser()}" icon="user" action="/pages/private/compte.xhtml?faces-redirect=true" ajax="false" rendered="#{sec:isAuthenticated()}"/>
				<p:menuitem value="#{msg['ihm.bouton.deconnexion']}" icon="disconnect" action="#{beanLogin.logOut()}" ajax="false" rendered="#{sec:isAuthenticated() and !beanSession.switched}"/>
				<p:menuitem value="#{msg['ihm.bouton.quitter_switch_session']}" icon="disconnect" action="#{beanLogin.doExitUser()}" ajax="false" rendered="#{sec:isAuthenticated() and beanSession.switched}"/>
			</p:menubar>

		</h:panelGroup>
	</h:form>

</ui:composition>